package com.zhao.dota.security.handler;

import com.zhao.dota.struct.Result;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class LoginExpiredHandler extends LoginHandler {

    public void onAccessTokenExpired(HttpServletRequest request, HttpServletResponse response) throws IOException {
        Result<String> result = Result.error(201, "access token已过期");
        super.writeResult(response, result, 403);
    }

}
